// 登录
import qs from 'qs'

import { request } from "./request"

// 登录
export function login (admin_name, password) {
  return request({
    url: '/admin/login',
    method: 'post',
    headers:{'Content-Type':'application/x-www-form-urlencoded'},
    data: qs.stringify({
      admin_name,
      password
    })
  })
}